
//----------------------------------------------------------------
// Copyright (C) 2009 上海EZCRS
// 版权所有。 
// All rights reserved.

// 文件名：MsgSendRuleBean.cs
// 文件功能描述：消息发送规则
// 
// 
// 创建标识： kevin  2009-6-5 14:37:20
//
// 修改标识：
// 修改描述：
//----------------------------------------------------------------

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Strive.Util.Text;
using Strive.Util.Logging;
using Strive.Core.Validations;
using Strive.Core.Service;
using Strive.Core.Translators;
using Strive.Util.Maths;
using Strive.Reflection;
using Strive.Aspects;
using Strive.DataAccess;
using OTA.Notification.Entity;
using OTA.Notification.Entity.Send;

namespace OTA.Notification.Entity.Send
{
    /// <summary>
    ///分发规则引擎表[MSG_SEND_RULE]实体类
    ///对应表名:MSG_SEND_RULE
    /// </summary>
    [Serializable]
	[Table(Name = "MSG_SEND_RULE")]
    public class MsgSendRuleBean
    {
        
        #region Private 成员
        private int _rule_id=0; 
        private string _msg_type_code=String.Empty; 
        private string _rule_name=String.Empty; 
        private string _owner=String.Empty; 
        private string _create_user_name=String.Empty; 
        private DateTime _create_time=new DateTime(1900,1,1); 
        private string _last_update_user_name=String.Empty; 
        private DateTime _last_update_time=new DateTime(1900,1,1);   

        #endregion
  
        
        #region Public 成员
   
        /// <summary>
        /// 属性名称：RuleId
        /// 属性描述：
        /// 字段信息：[RULE_ID],int
        /// </summary>
        [Column(Name="RULE_ID"),PK]
		public int RuleId
        {
            get { return _rule_id; }
            set
            {
            
                {
                    _rule_id = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：MsgTypeCode
        /// 属性描述：
        /// 字段信息：[MSG_TYPE_CODE],nvarchar
        /// </summary>
        [Column(Name="MSG_TYPE_CODE")]
		public string MsgTypeCode
        {
            get { return _msg_type_code; }
            set
            {
            
                if(value==null)return;
                if (_msg_type_code as object == null || !_msg_type_code.Equals(value))
                {
                    _msg_type_code = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：RuleName
        /// 属性描述：
        /// 字段信息：[RULE_NAME],nvarchar
        /// </summary>
        [Column(Name="RULE_NAME")]
		public string RuleName
        {
            get { return _rule_name; }
            set
            {
            
                if(value==null)return;
                if (_rule_name as object == null || !_rule_name.Equals(value))
                {
                    _rule_name = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：Owner
        /// 属性描述：
        /// 字段信息：[OWNER],nvarchar
        /// </summary>
        [Column(Name="OWNER")]
		public string Owner
        {
            get { return _owner; }
            set
            {
            
                if(value==null)return;
                if (_owner as object == null || !_owner.Equals(value))
                {
                    _owner = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：CreateUserName
        /// 属性描述：
        /// 字段信息：[CREATE_USER_NAME],nvarchar
        /// </summary>
        [Column(Name="CREATE_USER_NAME")]
		public string CreateUserName
        {
            get { return _create_user_name; }
            set
            {
            
                if(value==null)return;
                if (_create_user_name as object == null || !_create_user_name.Equals(value))
                {
                    _create_user_name = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：CreateTime
        /// 属性描述：
        /// 字段信息：[CREATE_TIME],datetime
        /// </summary>
        [Column(Name="CREATE_TIME")]
		public DateTime CreateTime
        {
            get { return _create_time; }
            set
            {
            
                {
                    _create_time = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：LastUpdateUserName
        /// 属性描述：
        /// 字段信息：[LAST_UPDATE_USER_NAME],nvarchar
        /// </summary>
        [Column(Name="LAST_UPDATE_USER_NAME")]
		public string LastUpdateUserName
        {
            get { return _last_update_user_name; }
            set
            {
            
                if(value==null)return;
                if (_last_update_user_name as object == null || !_last_update_user_name.Equals(value))
                {
                    _last_update_user_name = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：LastUpdateTime
        /// 属性描述：
        /// 字段信息：[LAST_UPDATE_TIME],datetime
        /// </summary>
        [Column(Name="LAST_UPDATE_TIME")]
		public DateTime LastUpdateTime
        {
            get { return _last_update_time; }
            set
            {
            
                {
                    _last_update_time = value;
                }
             }
        }
  
        #endregion 
  
    }
}
